{% extends 'base.html' %}

{% block title %}
my first blog system
{% endblock %}

{% block contents %}
<br/>
{% for post in posts %}
{{post.key.id}}
<a href="{{post.get_absolute_url}}">{{post.title}}</a>
{{post.author}}
{{post.content}}
{% for tag in post.tags %}
<a href="../../tag/{{tag}}">{{tag}}</a>
{% endfor %}
{{post.post_on|time}}
{{post.post_on|date}}
<br>
{% endfor %}
{{  max_page }}

{% if show_page_panel %}
<br />
<div id="page_panel">
{% if show_prev %}
<a href="/page/{{ prev }}"><span style="font-size:9px;">&lt;&lt;</span> PREV</a>
{% endif %}
{% if show_prev and show_next %}
-
{% endif %}
{% if show_next %}
<a href="/page/{{ next }}">NEXT <span style="font-size:9px;">&gt;&gt;</span></a>
{% endif %}
</div>
{% endif %}


{% endblock %}